package com.xiaocg.mediator;

public class HouseOwner extends Person{
    public HouseOwner(String name, Mediator mediator) {
        super(name, mediator);
    }

    public void constant(String message){
        mediator.constant(message,this);
    }

    public void getMessage(String message){
        System.out.println("房主："+name+"需要出租的信息："+message);
    }
}
